<template>
  <div>
    <el-container>
      <el-header>
        <el-menu
          :default-active="activeIndex"
          class="el-menu-demo"
          mode="horizontal"
          @select="handleSelect"
          style="width:1280px;position: relative;
  left: -20px;"
        >
          <el-menu-item index="/index_manager/workerindex/addworker">单个录入</el-menu-item>
          <el-menu-item index="/index_manager/workerindex/batchworker">批量录入</el-menu-item>
          
        </el-menu>
      </el-header>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </div>
</template>

<script>
export default {
  data() {
    return {
      activeIndex: "/index_manager/workerindex/addworker"
    };
  },
  methods: {
    handleSelect(key, keyPath) {
        this.$router.push(key);
      console.log(key, keyPath);
    }
  },
  components: {}
};
</script>

<style scope>
</style>
